//global variable to store links;
var links = new Array();

function onDisplayResult(){
   Rounded("rounded",5,5,5,0);
}

function showTooltip(name) {

	var elements=[];
	var holder=document.getElementById("tooltip_holder");
	if(!holder)return;
	elements=holder.getElementsByTagName('DIV');
	var regexp=new RegExp("tti_.+");
	for (var i = 0; i < elements.length; i++) {
		if (regexp.test(elements[i].id)){
			if('tti_'+name==elements[i].id)elements[i].style.display = "block";
			else elements[i].style.display = "none";
		} 
	}
	highlightLinks(name);
}

function highlightLinks(name) {
	elements=document.getElementsByTagName('TD');
	for (var i = 0; i < elements.length; i++) {
		if ( elements[i].id.indexOf('app_')==0 ){
			elements[i].style.backgroundColor = "transparent";
		} 
	}

	for (i in links) {
		if (i.indexOf(name+';')==0) {
			var e=document.getElementById("app_"+links[i]);
			if(e)e.style.backgroundColor = "black";
		}
	}	
	var e=document.getElementById("app_"+name);
	if(e)e.style.backgroundColor = "black";
}
